<template>
  <div>
    <el-table
      ref="varTable"
      class="systemTable"
      :data="info"
      highlight-current-row
      :stripe="true"
      :height="'576px'"
      :max-height="'576px'"
      style="width: 100%;"
      border
    >
      <el-table-column prop="logTime" label="操作时间" width="165"></el-table-column>
      <el-table-column prop="userName" label="操作人员" width="90"></el-table-column>
      <el-table-column prop="accept" label="接收人员" width="165"></el-table-column>
      <el-table-column show-overflow-tooltip prop="content" label="日志内容" width="360"></el-table-column>
      <el-table-column show-overflow-tooltip prop="word" label="流转信息"></el-table-column>
    </el-table>
  </div>
</template>

<script>
import { wflogs } from "@/system/api/flowSend";
export default {
  name: "flowLog",
  props: {
    wfInstId: { default: null },
  },
  components: {},
  data() {
    return {
      info: [],
    };
  },
  watch: {},
  computed: {},
  methods: {
    wflogs() {
      if (this.wfInstId) {
        let param = { wfInstId: this.wfInstId };
        wflogs(param).then((res) => {
          if (res.success) {
            this.info = res.info;
          } else {
            this.message(res.msg, 3);
          }
        });
      }
    },
  },
  mounted() {
    this.wflogs();
  },
};
</script>

<style scoped lang="scss">
.systemTable ::v-deep.el-table__header tr,
.systemTable ::v-deep.el-table__header th {
  background-color: transparent;
}
</style>
